# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : __init__.py.py
@Time    : 2020/2/5 0005 16:51
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
from flask_restful import Api

from App.apis.cinema_admin.ciema_hall_api import CinemaHallsResource, UserMovieHallResource
from App.apis.cinema_admin.cinema_address_api import CinemaAddressResource, CinemaAddresResource
from App.apis.cinema_admin.cinema_hall_movie_api import CinemaMovieHallsReource
from App.apis.cinema_admin.cinema_movie_api import CinemaMoviesResource
from App.apis.cinema_admin.cinema_user_api import CinemaUsersResource

cinema_client_api = Api(prefix='/cinema')

cinema_client_api.add_resource(CinemaUsersResource, '/users/')
cinema_client_api.add_resource(CinemaAddressResource, '/address/')
cinema_client_api.add_resource(CinemaAddresResource, '/address/<int:address_id>')
cinema_client_api.add_resource(CinemaMoviesResource, '/addmovie/')
cinema_client_api.add_resource(CinemaHallsResource, '/addhall/')
cinema_client_api.add_resource(CinemaMovieHallsReource, '/addhallmovie/')
cinema_client_api.add_resource(UserMovieHallResource, '/gethall/<int:id>')
if __name__ == "__main__":
    pass
